﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Windows.Controls;

namespace GoogleCalendarView
{
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : Application
	{
		/// <summary>
		/// Catches all bubbeling events of type RoutedEventArgs
		/// </summary>
		/// <param name="sender">The component which has raised the event.</param>
		/// <param name="e">The RoutedEvent args</param>
		private void Button_Click(object sender, RoutedEventArgs e)
		{
			MainView view = this.MainWindow as MainView;
			if (sender is Button)
			{
				view.loggingBlock.Text = "Button clicked";
			}
			else
			{
				view.loggingBlock.Text = "A click from : " + sender.GetType().ToString();
			}
		}
	}
}
